import { createRouter, createWebHistory } from "vue-router";
import { RouteRecordRaw } from "_vue-router@4.0.12@vue-router";
// 为路由增加额外配置项
type AppRouteRecordRaw = RouteRecordRaw & {
  hidden?: boolean;
};

const router = createRouter({
  history: createWebHistory("/vvt"),
  routes: [
    {
      path: "/home",
      component: () => import("../views/home.vue"),
      meta: {
        tittle: "待办列表",
      },
      hidden: true,
    },
    {
      path: "/JSX",
      component: () => import("views/jsx.vue"),
    },
    {
      path: "/mock",
      component: () => import("views/mock.vue"),
    },
    {
      path: "/element3",
      component: () => import("views/element3.vue"),
    },
  ] as AppRouteRecordRaw[],
});

export default router;
